package com.base.wslisten;

import java.util.Date;

import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.http.websocketx.TextWebSocketFrame;

public class BaseClientSession {
	private long uuidLong;
	private Byte threadPoolIdByte;
	private TextWebSocketFrame textWebSocketFrame;
	private ChannelHandlerContext ctxChannelHandlerContext;
	public BaseClientSession(ChannelHandlerContext ctx, String msgString,long uuid){
		textWebSocketFrame = new TextWebSocketFrame(new Date().toString()
                + ctx.channel().id() + "：" + msgString);
		uuidLong = uuid;	
		ctxChannelHandlerContext = ctx;
	}
	
	
	
	public long getUuidLong() {
		return uuidLong;
	}

	public void setUuidLong(long uuidLong) {
		this.uuidLong = uuidLong;
	}

	public Byte getThreadPoolIdByte() {
		return threadPoolIdByte;
	}

	public void setThreadPoolIdByte(Byte threadPoolIdByte) {
		this.threadPoolIdByte = threadPoolIdByte;
	}

	public TextWebSocketFrame getTextWebSocketFrame() {
		return textWebSocketFrame;
	}

	public void setTextWebSocketFrame(TextWebSocketFrame textWebSocketFrame) {
		this.textWebSocketFrame = textWebSocketFrame;
	}

	public ChannelHandlerContext getCtxChannelHandlerContext() {
		return ctxChannelHandlerContext;
	}

	public void setCtxChannelHandlerContext(ChannelHandlerContext ctxChannelHandlerContext) {
		this.ctxChannelHandlerContext = ctxChannelHandlerContext;
	}
}
